import { ParamsDto } from '@common/dto/params.dto';
import { ApiProperty } from '@nestjs/swagger';

export class MiniLoginDto extends ParamsDto {
  @ApiProperty({ title: 'code', required: false })
  code: string;

  @ApiProperty({ title: '微信用户昵称', required: false })
  nickName: string;

  @ApiProperty({ title: '微信用户头像', required: false })
  avatar: string;

  @ApiProperty({ title: 'opendId', required: false })
  openId: string;

  @ApiProperty({ title: 'userInfo', required: false })
  userInfo: string;
}

export class MiniProgramRegisterDto {
  @ApiProperty({ title: '微信用户昵称' })
  nickName: string;

  @ApiProperty({ title: '微信用户头像' })
  avatar: string;

  @ApiProperty({ title: '微信用户openid' })
  openid: string;

  @ApiProperty({ title: '微信用户sessionKey' })
  sessionKey: string;
}
